package com.example.weblending.utils;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.example.weblending.vo.CleanColumn;

import java.util.ArrayList;
import java.util.List;

public class CsvRead  extends AnalysisEventListener<CleanColumn> {
    /**
     * 默认给一万 过大效率会变低
     */
    private static final int BATCH_COUNT = 10000;
    List<CleanColumn> list = new ArrayList<>();

    @Override
    public void invoke(CleanColumn data, AnalysisContext context) {
        list.add(data);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext context) {

    }
}
